package com.dq.domain.service.centre;

import com.dq.vo.baseVo.VO;
import com.dq.domain.base.BaseEntity;
import com.dq.domain.service.ServiceProject;
import com.dq.domain.sys.user.user.WxUser;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.persistence.Entity;
import javax.persistence.ManyToOne;

/**
 * @Author luchangtong
 * @Date 2020/3/31 14:15
 */
@Data
@Entity
@ApiModel("服务项目类别服务项目 关联表")
public class WxUserServiceProjectCentre extends BaseEntity implements VO.ToVO{
    @ApiModelProperty("用户")
    @ManyToOne
    protected WxUser wxUser;
    @ApiModelProperty("服务项目")
    @ManyToOne
    protected ServiceProject serviceProject;
    @ApiModelProperty("剩余次数")
    protected Long num;

    @Override
    public VO toVO(boolean isRecursion) {
        return null;
    }
}
